package www.ld.com.converter;


import cn.hutool.core.util.StrUtil;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;


@Component
public class StringEmptyTONullConverter implements Converter<String, String> {
    @Override
    public String convert(String source) {
         return StrUtil.isNotBlank(source)? source:null;
    }
}
